package com.baidu.automata.core.type;

import org.dom4j.Element;
import org.w3c.dom.Node;

public class StringField extends BasicDataField<String> {

	private String value = null;

	public StringField() {
		super();
	}

	public StringField(String id) {
		super(id);
	}

	@Override
	public String getValue() {
		return value;
	}

	@Override
	public void setValue(String value) {
		this.value = value;
	}

	@Override
	public void deserialize(Element e) throws Exception {
		this.id = e.attributeValue("id");
		this.value = e.getText();
	}

	@Override
	public Node serialize() throws Exception {
		return null;
	}
}
